package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    /**
     * 用户的认证与授权
     * @param username
     * @return
     */
    User findByUsername(String username);

    /** 获取当前用户菜单
     * @param username
     * @return
     */
    List<Menu> getMenu(String username);


    PageResult<User> findPage(QueryPageBean queryPageBean);

    void add(Integer[] roleIds, User user);


    User findById(int id);

    void edit(Integer[] roleIds, User user);


    void deleteById(int id);

}
